package jym.tan.tmdb.bean;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;

/**
 * The Class PersonCrew.
 * <p>
 * 	The property is:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>original_title</li>
 * 		<li>poster_path</li>
 * 		<li>release_date</li>
 * 		<li>title</li>
 * 		<li>department</li>
 * 		<li>job</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public class PersonCrew extends Credit implements Serializable {

	private static final long serialVersionUID = -7222702056829409785L;

	@SerializedName("department")
	private String department;

	@SerializedName("job")
	private String job;
	
	/**
	 * Default Constructor.
	 */
	public PersonCrew() {
		
	}

	/**
	 * Gets the department.
	 *
	 * @return 
	 * 		The department
	 */
	public String getDepartment() {
		return department;
	}

	/**
	 * Sets the department.
	 *
	 * @param department 
	 * 		The new department
	 */
	public void setDepartment(String department) {
		this.department = department;
	}

	/**
	 * Gets the job.
	 *
	 * @return 
	 * 		The job
	 */
	public String getJob() {
		return job;
	}

	/**
	 * Sets the job.
	 *
	 * @param job 
	 * 		The new job
	 */
	public void setJob(String job) {
		this.job = job;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Credit#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("department:").append("\"").append(department).append("\"").
			append(",").
			append("job:").append("\"").append(job).append("\"").
			append(",").
			append("original_title:").append("\"").append(originalTitle).append("\"").
			append(",").
			append("poster_path:").append("\"").append(posterPath).append("\"").
			append(",").
			append("release_date:").append("\"").append(releaseDate).append("\"").
			append(",").
			append("title:").append("\"").append(title).append("\"").
			append("}");
		return builder.toString();
	}
}
